package com.riant.service.impl;

import com.riant.dao.AccountDao;
import com.riant.service.AccountService;

/**
 * @Classname AccountServiceImpl
 * @Description TODO
 * @Date 2021/8/17 23:51
 * @Created by 张斌
 */
public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao;

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    public void transfer(String outName, String inName, Double money) {
        /**
         *  业务操作
         */
        accountDao.inMoney(outName, money);
        //int i = 1/0;
        accountDao.outMoney(inName, money);
    }
}
